* {
  margin: 0;
  padding: 0;
}

body,
html {
  /* min-width: 1024px; */
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-family: 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  overflow: hidden;
}
a {
  display: block;
  text-decoration: none;
}
ul {
  list-style: none;
}

i {
  display: inline-block;
}

input {
  border: none;
  outline: none;
  background-color: #fff;
}

.btn {
  cursor: pointer;
  border-radius: 4px;
  letter-spacing: 2px;
  user-select: none;
}

&::-webkit-scrollbar {
  width: 7px;
}
&::-webkit-scrollbar-track {
  background-color: rgba(50, 50, 50, 0.1);
}
&::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(111, 111, 111, 0.3);
  &:hover {
    background-color: #717171;
  }
}

.pagination-wrapper {
  padding: 24px 0;
}

.modal {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  .modal-header {
    font-size: 18px;
    color: #666;
  }
}

.rb-button {
  border-radius: 4px;
  color: #fff;
  background-color: #009cff;
  border: 1px solid #009cff;
  letter-spacing: 2px;
  width: 83px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

// element 样式
.el-table {
  font-size: 14px;
  color: #666;
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  thead {
    color: #616161 !important;
  }
  th.el-table__cell {
    background-color: #f7fafc !important;
  }
  .el-table__body-wrapper {
    overflow-y: auto;
    
    &::-webkit-scrollbar {
      width: 8px;
    }
    
    &::-webkit-scrollbar-thumb {
      background-color: rgba(144, 147, 153, 0.3);
      border-radius: 4px;
      
      &:hover {
        background-color: rgba(144, 147, 153, 0.5);
      }
    }
    
    &::-webkit-scrollbar-track {
      background-color: transparent;
    }
  }
  
  .el-table__row {
    td {
      padding: 8px 0;
    }
  }
  
  .el-table__header th {
    padding: 10px 0;
    font-weight: bold;
    background-color: #f5f7fa;
    color: #606266;
  }
}

.el-cascader-menu__list {
  max-height: 400px;
}

// 表格容器自适应类
.table-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  
  .table-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    
    .el-table {
      flex: 1;
      min-height: 0;
    }
  }
  
  .table-footer {
    flex-shrink: 0;
    padding: 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

// 响应式表格高度计算
.responsive-table {
  .el-table {
    max-height: calc(100vh - 200px);
    
    @media (max-height: 768px) {
      max-height: calc(100vh - 180px);
    }
    
    @media (max-height: 600px) {
      max-height: calc(100vh - 160px);
    }
  }
}
